package com.calligraphy.order.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    PARAM_ERROR(1, "参数错误"),

    ORDER_NOT_EXIST(2,"订单不存在"),

    ORDER_DETAIL_NOT_EXIST(3,"订单详情不存在"),

    ORDER_STATUS_ERROR(4,"订单状态不正确"),

    ORDER_UPDATE_FAIL(5,"订单更新失败"),

    ORDER_DETAIL_EMPTY(6,"订单详情为空"),

    CART_EMPTY(7, "购物车为空"),

    ORDER_OWNER_ERROR(8,"该订单不属于当前用户"),

    ORDER_CANCEL_SUCCESS(9,"订单取消成功"),

    ORDER_FINISH_SUCCESS(10,"订单完结成功"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
